<?php
/**
 * Created by PhpStorm.
 * User: hhcyc
 * Date: 2018/9/8
 * Time: 15:01
 */

namespace App\Controllers;


use App\Models\Post;

class PostController extends BaseController
{
    public function index()
    {
        $post = Post::select('id', 'title')->first();
        echo view('index', compact('post'));
    }
}